import axiosIntance from "../axiosInstance";

const hallInfo= {
    getAllList() {
        return axiosIntance.get("/hall-info/getAllList");
    },
    getListByPage({pageIndex,hall_name}) {
        return axiosIntance.get("/hall-info/getListByPage",{
            params:{
                pageIndex,hall_name
            }
        });
    },
    deleteById(id) {
        return axiosIntance.delete(`/hall-info/deleteById/`+id);
    },
    update({id,hall_name,sites,tags,address}) {
        return axiosIntance.patch("/hall-info/update/"+id,{
            hall_name,sites,tags,address
        });
    }
}

export default hallInfo;